<?php
$cars = array("Volno","BMW","Toyota");
/*echo $cars[0]."     ";
echo $cars[1]."     ";
echo $cars[2]."     ";


$cars[2] = "audi";
echo "<pre>";
print_r($cars);
echo count($cars);
sort($cars);*/
 
foreach ($cars as $value) {
    echo $value,"  ";
} 
echo "<hr/>";
echo "for.<br/>";
$len = count($cars);
for ($i = 0; $i < $len; $i++) {
    echo $cars[$i]."<br/>";
}
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
